
local skynet = require "skynet"
local json = require "json"

local logger = require "logger"
local utils = require "utils"

local cdkserver = "cdkserver"

function rep.cdkey(req)
-- method,header,body,query
	local query = req.query

	local ret = skynet.call(cdkserver, "lua", "cdkey", query.uid,query.key)
	-- utils.dumpprint(ret)
	return 200,json.encode(ret)
end
 